package com.pzcnet.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by xdkxlk on 2017/9/10.
 */
@Data
public class Event extends BaseEvent {

    public Event() {
    }

    public Event(Integer id, String eventType, String payload) {
        super(eventType);
        this.id = id;
        this.payload = payload;
    }

    private Integer id;

    private String payload;

    private int version;

    private Date createTime;

    private Date updateTime;
}
